package com.hugoo.rpt.busz;

import com.hugoo.core.Conf;
import com.hugoo.core.ConfigurationError;
import com.hugoo.core.db.ResultPack;
import com.hugoo.core.db.rp.TxtResultPack;
import com.hugoo.rpt.ExpPageInfo;
import com.hugoo.rpt.ParamError;
import com.hugoo.rpt.RptPageInfo;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Hugoo.Chan
 */
public class TxtExpAction extends RptPageInfo implements ExpPageInfo {

    public TxtExpAction(String sid, HttpServletRequest request) throws ParamError, ConfigurationError {
        super(sid, request);
    }

    @Override
    public String getFileName() {
        return getTitle() + ".txt";
    }

    @Override
    public ResultPack getResultPack() {
        return new TxtResultPack(this, col);
    }

    @Override
    protected String getDeclareColumnInfo() {
        return Conf.getAutqProp2(_sid, Conf.RPT._rpt_txt_columns);
    }

    @Override
    public String getFNUMColumns() {
        return "";
    }
}
